Ignore deprecations for gdk_flush()
authorEmmanuele Bassi <ebassi@gnome.org>
Sun, 11 Feb 2018 15:13:06 +0000 (15:13 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 11 Feb 2018 23:28:50 +0000 (23:28 +0000)
When terminating the main loop, we're really trying to flush all
GdkDisplay connections, so it's actually a legitimate internal use
case.

gtk/gtkmain.c

index a9b9481c635f47f7ff7d370fec75260d985b43b5..74ce18009dcc3c572752070d18de36202285aa1f 100644 (file)
@@ -1322,7 +1322,10 @@ gtk_main (void)
       gdk_threads_leave ();
       g_main_loop_run (loop);
       gdk_threads_enter ();
+
+      G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       gdk_flush ();
+      G_GNUC_END_IGNORE_DEPRECATIONS;
     }
 
   main_loops = g_slist_remove (main_loops, loop);